package com.task.src.mapper;

import com.task.src.dto.Alipay;
import com.task.src.dto.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@Mapper
public interface UserMapper {
    int insertUser(@Param("uname") String uname, @Param("psd") String psd, @Param("email")String email);
    int selectUser(@Param("uname")String uname,@Param("psd")String psd);
    int insertOrder(Alipay alipay);
    User selectMes(int id);
    int updateUser(@Param("yesTx") String yesTx,@Param("noTx")String noTx,@Param("uid") String uid);
    List<Alipay> selectMyTx(String uid);
    int updateUserPsd(@Param("email") String email, @Param("psd") String psd);
}
